﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.PmiScale.CUiPMIShrinkTextCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.PMI.PmiScale.Resources;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.PmiScale;

public class CUiPMIShrinkTextCmd : TxButtonCommand
{
  private CApPMIScaleEnabler m_pmiScaleEnabler;
  private CApPMIScaleApp m_pmiScale;

  public CUiPMIShrinkTextCmd()
  {
    this.m_pmiScale = new CApPMIScaleApp();
    this.m_pmiScaleEnabler = new CApPMIScaleEnabler();
  }

  public virtual void Execute(object cmdParams) => this.m_pmiScale.ShrinkTextForSelection();

  public virtual string Category => PMIScaleStringTable.PMI_SCALE_CATEGORY;

  public virtual string Name => PMIScaleStringTable.PMI_SHRINK_TEXT;

  public virtual string Description => PMIScaleStringTable.PMI_SHRINK_TEXT_DESCRIPTION;

  public virtual string Tooltip => PMIScaleStringTable.PMI_SHRINK_TEXT_TOOLTIP;

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("ShrinkPmiText");

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_pmiScaleEnabler;
}
